<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js" ></script>
	</head>
	<body ng-app="myapp"  ng-controller="mycontr">
		<div>
			<input type="text" name="name" ng-model="name" />
			
			<input type="button" value="清空" ng-click="clera()" />
			
			<input type="button" value="下一句" ng-click="shoudown()" />
		</div>
		<div>
			hai,{{name}}
		</div>
		<script type="text/javascript">
				var mapp = angular.module("myapp",[]);
				mapp.controller("mycontr",["$scope",function($scope){
					$scope.name="仙路尽头谁为锋";
					
					$scope.clera = function(){
						$scope.name="";
					}
					
					$scope.shoudown = function(){
						$scope.name = "一见无始道成空";				
					}
				}]);
				
			</script>
	</body>
</html>
